/*
 *	$Id: main.cpp 95 2009-05-29 12:04:21Z wabsie $
 */

#include <cstdio>	// fopen & co.
#include "gui.h"	// GUI

int main(int argc, char *argv[])
{
#ifdef __WIN32__
	// SDL quirk: Lad stdio være terminal og ikke tekstfiler
	FILE *c = fopen("CON", "w");
	if (c) {
		freopen("CON", "w", stdout);
		freopen("CON", "w", stderr);
		fclose(c);
	}
#endif

	gui root;	// Default constructor kaldes
	root.run();	// Main loop

	return 0;
}
